package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分销会员表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("distribution_member")
public class DistributionMember extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键id
     */
    @TableField("member_id")
    private Integer memberId;
    /**
     * 上级用户主键id
     */
    @TableField("superior_member_id")
    private Integer superiorMemberId;
    /**
     * 分销等级主键id
     */
    @TableField("grade_id")
    private Integer gradeId;
    /**
     * 直接下级数
     */
    @TableField("sub_number")
    private Integer subNumber;
    /**
     * 分销订单数
     */
    @TableField("order_count")
    private Integer orderCount;
    /**
     * 备注
     */
    private String remark;
    /**
     * 余额
     */
    private BigDecimal balance;
    /**
     * 总结算收入
     */
    @TableField("settlement_amount")
    private BigDecimal settlementAmount;
    /**
     * 已提现
     */
    @TableField("withdrawals_amount")
    private BigDecimal withdrawalsAmount;
    /**
     * 已申请佣金
     */
    @TableField("application_amount")
    private BigDecimal applicationAmount;
    /**
     * 待打款佣金
     */
    @TableField("waiting_amount")
    private BigDecimal waitingAmount;
    /**
     * 无效佣金
     */
    @TableField("invalid_amount")
    private BigDecimal invalidAmount;
    /**
     * 冻结金额
     */
    @TableField("freeze_amount")
    private BigDecimal freezeAmount;
    /**
     * 待收货金额
     */
    @TableField("receipt_amount")
    private BigDecimal receiptAmount;

    /**
     * 累计手续费
     */
    private BigDecimal feeAmount;
    /**
     * 分销成交商品数
     */
    @TableField("product_count")
    private Integer productCount;
    /**
     * 分销成交金额
     */
    @TableField("sale_amount")
    private BigDecimal saleAmount;
    /**
     * 下级分销成交商品数
     */
    @TableField("sub_product_count")
    private Integer subProductCount;
    /**
     * 下级分销成交金额
     */
    @TableField("sub_sale_amount")
    private BigDecimal subSaleAmount;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_delete")
    private Integer isDelete;


}
